package com.kis.service.user

import com.kis.config.FeignConfiguration
import com.kis.model.ResponseData
import org.springframework.cloud.netflix.feign.FeignClient
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RequestMethod
import org.springframework.web.bind.annotation.RequestParam

/**
 * Created by wongloong on 16-12-7.
 */
@FeignClient("SERVICE-USER", configuration = arrayOf(FeignConfiguration::class))
interface UserClient {
    @RequestMapping("/user", method = arrayOf(RequestMethod.POST))
    fun saveOrUpdate(@RequestParam("userJson")userJson: String): ResponseData
}